Skip to content

Proof-of-concept test service #5435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Proof-of-concept test service #5435

wants to merge 2 commits into from

Conversation

Avery-Dunn
Copy link
Contributor

@Avery-Dunn Avery-Dunn commented Aug 12, 2025

This draft PR presents a working version of the work described in KR 3261363, and is meant to address feedback after some internal reviews of #5332

This proof-of-concept demonstrates how we can us a simple test service to simulate services such as STS and provide scenario-specific test configuration. With this set up each MSAL can have more consistent testing experience by centralizing configuration and mocked HTTP responses, all while using an API that can be easily spun up locally for new additions and quick adjustments.

This PR makes the following changes:

  • Add a new ConfigService class to retrieve and parse responses from the ID labs API
  • Adjust an existing test in GenericAuthorityTests to use the new ConfigService rather than local constants and mocked responses.
  • Add a new TokenRevocationTests class to show how it could be used for a scenario that is hard to test end-to-end (Service Fabric MI and token revocation)

Much of the configuration here and in the test service was created as a first draft, good-enough-for-now implementation. The names of classes/methods/fields and all of the config in the test service are not final or made with any grand design in mind, and is very open to feedback.

N.B: currently these new tests only work when the API is running locally, so they will fail in the pipeline. The related PR in the ID labs repo must be merged in first.

@Avery-Dunn Avery-Dunn changed the title Proof-of-concept Proof-of-concept test service Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant